#

| Chapter 2 UNIX Commands |

## edit

    edit [options] [file]

A line-oriented text editor that runs a simplified version of ex for novice users. The set variables report, showmode, and magic are preset to report editing changes, to display edit modes (when in :vi mode), and to require literal search patterns (no metacharacters allowed), respectively. (Encryption is not supported outside the United States.)

### Options

-C

  Same as -x, but assume files are already encrypted.

-r

  Recover file after a system crash or editor crash.

-x

  Encrypt file when it is written.

Reference: ed |  | Reference: egrep